package com.shihb.structuralpatterns.decoratorpattern;

/**
 *Description:
 *Version:1.0.0
 *@author shihb
 *@date 2020/7/18 21:38
 */
public class CoffeeBar {

  public static void main(String[] args) {
    Drink order = new Mocha();
    order=new Milk(order);
    order=new Chocolate(order);
    order=new Cream(order);
    order=new Sugar(order);
    System.out.println(order.getDes());
    System.out.println(order.cost());

  }
}
